Skip to content

Conversation

@juliasloan25
Copy link
Member

@juliasloan25 juliasloan25 commented Oct 31, 2025

Purpose

closes #1536

To-do

  • add a test comparing fluxes in atmosphere to bucket land, prescribed ocean, and prescribed sea ice
  • add a test comparing fluxes in atmos to integrated land (separate PR?)

Content


  • I have read and checked the items on the review checklist.

CC.Utilities.half,
)

# Integrated land: compare to net radiation stored in the bucket cache
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Integrated land: compare to net radiation stored in the bucket cache
# Bucket land: compare to net radiation stored in the bucket cache

Copy link
Member

@szy21 szy21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Also, I realized that with our current way of computing radiation, there will be an offset of one timestep between atmosphere and land, so they won't be the same. We can think about what the best way to test it is.

Comment on lines +49 to +50
# Convention note: bucket R_n is stored with the opposite sign (see climaland_bucket.jl),
# so we compare atmos_flux ≈ -R_n on land points.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Convention note: bucket R_n is stored with the opposite sign (see climaland_bucket.jl),
# so we compare atmos_flux ≈ -R_n on land points.
# Convention note: bucket R_n is stored with the same sign (positive upward, see climaland_bucket.jl),
# so we compare atmos_flux ≈ R_n on land points.

Comment on lines +9 to +10
# - Bucket land: compares against `sim.integrator.p.bucket.R_n` with opposite sign
# convention (so atmos ≈ -R_n) on land-dominant cells.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# - Bucket land: compares against `sim.integrator.p.bucket.R_n` with opposite sign
# convention (so atmos ≈ -R_n) on land-dominant cells.
# - Bucket land: compares against `sim.integrator.p.bucket.R_n` on land-dominant cells.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a test for matching atmosphere/surface fluxes

3 participants